1
general::
The worst possible situation, as in Spending your birthday working alone is the pits, or That job is the pits. The allusion in this term is unclear. Some think it refers to coal pits, others to armpits, and still others to the area beside an auto racecourse, also called the pits, where cars are serviced during a race. [Second half of 1900s]
American Heritage Idioms